package com.wze.wze.Service;

import com.wze.wze.Entity.Friend;
import com.wze.wze.Impl.FriendImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FriendService implements FriendImpl {
    @Resource
    FriendImpl friendImpl;
    @Override
    public int addFriend(int uid, String FriendName) {
        return friendImpl.addFriend(uid,FriendName);
    }

    @Override
    public int delFriendByFn(String FriendName) {
        return friendImpl.delFriendByFn(FriendName);
    }

    @Override
    public List<Friend> getFriendListByuid(int Start, int Page,int uid, String FriendName) {
        return friendImpl.getFriendListByuid(Start,Page,uid, FriendName);
    }
}
